function [result] = myCmpStr(s1, s2)

[m1 n1] = size(s1);
[m2 n2] = size(s2);

i = 1;
while ((s1(i) == s2(i)) && (i < n1) && (i < n2))
    i = i + 1;
end

if (s1(i) < s2(i))
    result = 1;
elseif (s1(i) == s2(i))
    result = 0;
else
    result = -1;
end